home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / source / hsclib / defattr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  1.8 KB  |  54 lines

  1. /*
  2.  * This source code is part of hsc, a html-preprocessor,
  3.  * Copyright (C) 1995-1997  Thomas Aglassinger
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20. /*
  21.  * defattr.h
  22.  *
  23.  * functions to define new attribute
  24.  * and manipulate attribute lists
  25.  *
  26.  */
  27.  
  28. #ifndef HSCLIB_DEFATTR_H
  29. #define HSCLIB_DEFATTR_H
  30.  
  31. /*
  32.  * global funcs
  33.  */
  34. #ifndef NOEXTERN_HSCLIB_DEFATTR
  35.  
  36. /* scope rules support */
  37. extern LONG get_mci( HSCPRC *hp );
  38. extern VOID unget_mci( HSCPRC *hp );
  39. extern LONG get_current_mci( HSCPRC *hp );
  40.  
  41. /* attribute list manipulation */
  42. extern BOOL copy_local_varlist(DLLIST * destlist, DLLIST * varlist, ULONG mci);
  43. extern BOOL set_local_varlist(DLLIST * destlist, DLLIST * varlist, ULONG mci);
  44. extern VOID remove_local_varlist(DLLIST * varlist, ULONG mci);
  45. extern BOOL check_varlist(HSCPRC * hp, DLLIST * varlist);
  46.  
  47. /* define attribute */
  48. extern HSCVAR *define_var(HSCPRC * hp, DLLIST * varlist, ULONG unmasked_flags);
  49. extern HSCATTR *define_attr_by_hp(HSCPRC * hp, STRPTR default_value, ULONG unmasked_flags);
  50. extern HSCATTR *define_attr_by_text(HSCPRC * hp, STRPTR attr_text, STRPTR default_value, ULONG unmasked_flags);
  51.  
  52. #endif /* NOEXTERN_HSCLIB_DEFATTR */
  53. #endif /* HSCLIB_DEFATTR_H */
  54.